changed swi sleep syntax