fixed correct function to use for update and correct preloaded attribute