tried(and failed) to add looping