modify move method to keep text attributes
add parameters