You cant have methods with the same name otherwise the interpreter won't know which one to choose, so put your logic in the one method.