remove session function for debug