removed default argument and implemented two seperate methods