this funtion should be indented by 2 more spaces as it is in a "do" loop