there is no error in this code but it suold be inside the class