final static solution