added __prepare call