blue frame refactored