also made the insert statement more fluid