fixed sub to method, since it is called as a method