layers working correctly