resolved deprecation and autolayout