generic return

added object return and thread.sleep