removed unused resources and cleared code a little