flash funcitonality working