modifying code for first version