moved to function
more like  a function