removed unnecessary methods
named a function for debugging issues