fixing error with layout3