simplification + platform-independent