removed sprintResource and moved functionality back into main controller