fixed return type for function