added the methods in comments