got rid of unneeded code in app.'s