ly functions in