remove withProperties function