copy from ctrik