added basic loops