ws
added helper function l to private