added code for detectify