working on ap layout