changed to suit my needs