made some methods private