attempts at loops