added return for function