correctly add offset