creating obstacles