optimized a bit

got rid of a couple of unnecessary variables (btn for instance)