made the code to be used at presentation