added bitmap as paramater