cleaned up leftover code straggling after the method