renamed file and made minor code changes