following method created and tested for