cleaned up code and got rid of alpha layer