CHECK FUNCTIONALITY 

changed variables to private