codeigniter modified for my own use