prepared for insert and update methods