function reordering for eclipse compatibility