added returned type to functions