trying some loop conditions