wrong return type for setLooping