made coordinates serializable