created and tested methods