converted procedure() method into function
deleted some files