methods added to end of code