add a function for dev version