remove platform dependency