change syntax to a single method