added while true loop