ticket:1. Modified according to commentsy