replace the offset () function to position ()