removed some unnecessary code. was using wrong context, fixed