refactored binding into single method