added selection statements (doesn't work yet)